@echo off
echo Resetting admin password...
python -c "import os, sys; os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'TradingPlatform_Server.settings'); import django; django.setup(); from Server.models import User; from django.contrib.auth.hashers import make_password; admin = User.objects.get(phone='13800138000'); admin.password = make_password('admin123'); admin.is_admin = True; admin.save(); print('SUCCESS: Password reset to admin123')"
pause

